package com.asiainfo.lop;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class MainFragmentMyself extends Fragment {
    private MyselfGridView myselfGridView;
    private ImageView myselfSettingIv;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.main_fragment_myself, container, false);
        myselfGridView = (MyselfGridView) view.findViewById(R.id.gridview);
        myselfGridView.setAdapter(new MyselfGridAdapter(getActivity()));

        myselfSettingIv = (ImageView) view.findViewById(R.id.myself_setting);
        myselfSettingIv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), MyselfSettingActivity_.class);
                startActivity(intent);
            }
        });

        return view;
    }
}
